\tracingonline=2
\tracingcommands=2
\tracingmacros=2
\tracingrestores=2

\count0=0
\count1=1
\count2=2
\count3=3
\count4=4
\count5=5

\dimen1=5\count2
\showthe\dimen1

%decimal
\dimen1=.cc
\showthe\dimen1

\dimen1=-.cc
\showthe\dimen1

\dimen1=1.cc
\showthe\dimen1

\dimen1=.1cc
\showthe\dimen1

\dimen1=1.3456pt
\showthe\dimen1

\dimen1=1.6543pt
\showthe\dimen1

%coersion
\dimen1=12.45pt
\showthe\dimen1
\count10=\dimen1
\showthe\count10
\count10=-\dimen1
\showthe\count10

%internal units
\count10=20
\dimen1=30\count10
\showthe\dimen1

\dimen10=20pt
\dimen1=30\dimen10
\showthe\dimen1

\skip10=20pt
\dimen1=30\skip10
\showthe\dimen1

\muskip10=20mu
\dimen1=30\muskip10
\showthe\dimen1

%units
\dimen1=10.3pt
\showthe\dimen1

\dimen1=10.3sp
\showthe\dimen1

\dimen1=10.3in
\showthe\dimen1

\dimen1=10.3pc
\showthe\dimen1

\dimen1=10.3cm
\showthe\dimen1

\dimen1=10.3mm
\showthe\dimen1

\dimen1=10.3bp
\showthe\dimen1

\dimen1=10.3dd
\showthe\dimen1

\dimen1=10.3cc
\showthe\dimen1

\mag=3000

\dimen1=10.3truept
\showthe\dimen1

\dimen1=10.3truesp
\showthe\dimen1

\dimen1=10.3truein
\showthe\dimen1

\dimen1=10.3truepc
\showthe\dimen1

\dimen1=10.3truecm
\showthe\dimen1

\dimen1=10.3truemm
\showthe\dimen1

\dimen1=10.3truebp
\showthe\dimen1

\dimen1=10.3truedd
\showthe\dimen1

\dimen1=10.3truecc
\showthe\dimen1

%fraction
\dimen1=0.5\count1
\showthe\dimen1

\dimen1=0.5\count2
\showthe\dimen1

\dimen1=0.3\count5
\showthe\dimen1

%negative
\dimen1=-10.2cc
\showthe\dimen1

\dimen1=-10.2\count3
\showthe\dimen1

%hex
\dimen1="A1cc
\showthe\dimen1

\dimen1=-"A1cc
\showthe\dimen1

%oct
\dimen1='21cc
\showthe\dimen1

\dimen1=-'21cc
\showthe\dimen1

%char
\dimen1=`acc
\showthe\dimen1

%signs
\dimen1=-1\count1
\showthe\dimen1
\dimen1=-2.2cc
\showthe\dimen1
\dimen1=--3.3cc
\showthe\dimen1

%spaces
\dimen1  =  -- - 3  \count1
\showthe\dimen1

\dimen1 = 3.3  cc
\showthe\dimen1

\dimen1 = 3.3 true cc
\showthe\dimen1

\dimen1 = 3.3true cc
\showthe\dimen1

\dimen1 = 3.3truecc
\showthe\dimen1

\dimen1 = 3.3 truecc
\showthe\dimen1

%overflow
\dimen1='7777777777\count1
\showthe\dimen1
\dimen1=1073741823.99\count1
\showthe\dimen1
\dimen1=-1073741823.99\count1
\showthe\dimen1
\dimen1=1073741824\count1
\showthe\dimen1
\dimen1=-1073741824\count1
\showthe\dimen1
\dimen1='10000000000\count1
\showthe\dimen1
\dimen1='4000000000\count2
\showthe\dimen1

\count10="7FFFFFFF
\dimen1=1\count10
\showthe\dimen1
\dimen1=2\count10
\showthe\dimen1
\dimen1=15\count10
\showthe\dimen1

\dimen1=555555555555\count2
\showthe\dimen1

\dimen1=555555555555.5sp
\showthe\dimen1

\dimen1=5.55555555555555sp
\showthe\dimen1

\dimen1=1073741823.9sp
\showthe\dimen1

\dimen1=1073741824.1sp
\showthe\dimen1

\dimen1="7FFFFFFFcc
\showthe\dimen1

\dimen1="7FFFFFFFpt
\showthe\dimen1

\dimen1="7FFFFFFF
\showthe\dimen1

\dimen1=226.7in
\showthe\dimen1
\dimen1=226.8in
\showthe\dimen1

%errors
\dimen1=10pt
\dimen1=\relax\relax
\showthe\dimen1

\dimen1=10pt
\dimen1=\count1\relax
\showthe\dimen1

\dimen1=10pt
\dimen1=-\count1\relax
\showthe\dimen1

\dimen1=10pt
\dimen1=pt
\showthe\dimen1

\dimen1=10pt
\dimen1=-pt
\showthe\dimen1

\end
